/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MainClasses.Event;

import java.awt.event.MouseListener;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JLabel;

/**
 *
 * @author andrewcutler
 */
public abstract class EventPanel extends JPanel{
    
    private JLabel label;
    
    public EventPanel()
    {
        super();
        this.setAlignmentX(JComponent.LEFT_ALIGNMENT);
    }
    
    public JLabel getLabel()
    {
        return label;
    }
    
    public void setLabel(JLabel l)
    {
        label = l;
    }
    
    public void addLabelMouseListener(MouseListener e)
    {
        label.addMouseListener(e);
    }

}
